let container = new Vue({
    el:".container",
    data:{
        rareAnimals:[],
        animals:[],
    },
    methods:{
        loadRareAnimals:function () {
            axios({
                url:"/zoosite/dwRareAnimal/loadrareanimals",
                method:"get",
            }).then(function (response) {
                container.rareAnimals = response.data;
            })
        },
        loadAnimals:function () {
            axios({
                url:"/zoosite/dwWatchGuide/loadanimals",
                method:"get",
            }).then(function (response) {
                container.animals = response.data;
            })
        }
        // change:function () {
        //     this.loadAnimals();
        // }
    },
    created:function () {
        this.loadAnimals();
    }
})